﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CardLogistics.Web.Components;
using System.Text;

namespace CardLogistics.Web.MainPage.CardRecovery.Scrap
{
    public partial class ScrapDetailedRpt : System.Web.UI.Page
    {   
        protected void Page_Load(object sender, EventArgs e)
        {
            string scrapNo = Request.QueryString["scrapNo"];//报废单号
            StringBuilder sbStr = new StringBuilder();
            sbStr.Append(" SELECT * FROM v_cardrecovery_scrap_Detailed WHERE 1=1  and Issubmit=5");
      
            if (scrapNo.Trim().Length > 0)
            {
                sbStr.Append(" and ScrapNo ='" + scrapNo.Trim().ToUpper() + "'");//报废单号
            }
            sbStr.Append(" Order by ScrapNo");
            OracleXMLReportData.GenNodeXmlData(this, sbStr.ToString(), true);

        }
    }
}